import request from '@/utils/requestExam'

// 查询专业列表
export function listSpecialty(query) {
  return request({
    url: '/api/uf/boostor/exam/question/ExamSpecialtyRest/searchByPage/v1',
    method: 'post',
    data: query
  })
}

// 根据专业ID查询专业详细信息
export function getSpecialtyById(specialtyId) {
  return request({
    url: '/api/uf/boostor/exam/question/ExamSpecialtyRest/specialtyId/' + specialtyId,
    method: 'get'
  })
}

//新增专业
export function addSpecialty(data){
  return request({
    url: "/api/uf/boostor/exam/question/ExamSpecialtyRest/add/v1",
    method: "post",
    data: data
  })
}

//修改专业
export function updateSpecialty(data){
  return request({
    url: "/api/uf/boostor/exam/question/ExamSpecialtyRest/edit/v1",
    method: "put",
    data: data
  })
}

//删除专业
export function deleteSpecialty(specialtyId){
  return request({
    url: "/api/uf/boostor/exam/question/ExamSpecialtyRest/remove/" + specialtyId,
    method: "delete"
  })
}
